package com.client.test.clienttest1;

import com.client.test.clienttest1.client.CustomerClient;
import com.test.bean.Customer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 描述:
 *
 * @outhor
 * @create 2018-07-30 下午3:31
 */
@RestController
public class ClientController{
    @Autowired
    private CustomerClient customerClient;

    @RequestMapping("/toCustomerState")
    public List<Customer> toCustomerState(){
        return customerClient.getByCustomerState();
    }
}